import request from '@/utils/request'

// 获取支付二维码
export async function getRiskRechargePayQrcode(data: any) {
  return request('/api/platform/getRiskRechargePayQrcode', {
    method: 'POST',
    data
  })
}

// 获取扫码支付结果
export async function getRiskRechargePayResult(params: any) {
  return request('/api/platform/queryPayResult', {
    method: 'GET',
    params
  })
}

// 查询风控余额
export async function getRiskBalance() {
  return request('/api/backend/getRiskBalance', {
    method: 'GET'
  })
}

// 风控列表
export async function chartRiskListDetail(data: any) {
  return request('/api/chartRiskListDetail', {
    method: 'POST',
    data
  })
}

// 商家端充值
export async function merChart(data: any) {
  return request('/api/merchant/merChart', {
    method: 'POST',
    data
  })
}

// 获取风控类型
export async function getRiskTypeMap() {
  return request('/api/getRiskTypeMap', {
    method: 'GET'
  })
}
